<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>查看回复</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">

    <link rel="stylesheet" href="/gupiao/css/weui.css">
    <link rel="stylesheet" href="/gupiao/css/jquery-weui.css">
    <link rel="stylesheet" href="/gupiao/css/style.css">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_689900_tgundrn0e1a46lxr.css">


</head>
<body class="back1">


<div class="index-top-fix">
    <a href="{:url('index/gupiao.mycenter/mycenter')}" class="iconfont icon-left- left"></a>
    <p class="title">查看回复</p>
</div>

<div class="mt50"></div>

<input type="hidden" id="id" value="{$id}" >

<div id="list">


</div>





</body>
</html>
<script src="/gupiao/js/jquery.min.js"></script>
<script src="/gupiao/js/jquery-weui.min.js"></script>

<script>
    var zhi = document.getElementById("id").value;
    $(function(){
        $.ajax({
            type : "GET",
            url : "{:url('gupiao.article/read')}",
            data:{id:zhi},
            dataType:'json',
            success : function (res) {
                if(res.code == 200){
                    var   question = res.data.question;
                    var   reply    = res.data.reply;

                    var  html    = '';
                        html += '<div class="article-box index-box">'+
                                '<div>' +
                                '<div class="comment-li">' +
                                '<img src='+question.avatar+' width="50">' +
                                '<div class="com">' +
                                '<div class="name">' +
                                '<p class="p1">'+question.name+'</p>' +
                                '</div>' +
                                '<div>'+question.content +'</div>' +
                                '<div>'+question.time +'</div>' +
                                '<div class="sec-com">' +
                                '<p class="p2">管理员:'+reply.name+'</p>' +
                                '<div>'+reply.content+'</div>' +
                                '<div>'+reply.time+'</div>' +
                                '</div>' +
                                '</div>' +
                                '</div>' +
                                '</div>' +
                                '</div>' +
                                '</div>';
                    if(res.count < 15){
                        $("#loadmore").hide();
                    }
                    $("#list").html(html);
                }
            }
        })
    })
</script>




